{# app/Resources/views/easy_admin/list_collection.html.twig #}

{% for product in value %}
    {% if product.name is defined %}
        <span class="label label-primary">{{ product.name }}</span>
    {% elseif product.tag is defined %}
        <span class="label label-primary">{{ product.tag }}</span>
    {% else %}
        <span class="label label-danger">未知</span>
    {% endif %}
{% else %}
    <span class="label label-warning">暂无</span>
{% endfor %}
